package service.impl;

import dao.EmpDao;
import dao.impl.EmpDaoImpl;
import pojo.Emp;
import service.EmpService;

import java.util.List;

public class EmpServiceImpl implements EmpService {
    private EmpDao empDao = new EmpDaoImpl();
    @Override
    public List<Emp> finAllEmps() {

        return empDao.findEmps();
    }

    @Override
    public String deleteEmpByEmpno(Integer empno) {
        return empDao.deleteEmpByEmpno(empno);
    }
}
